#pragma once
#include "afxwin.h"
#include "afxdtctl.h"


// CDlgHoldRequest dialog

class CDlgHoldRequest : public CDialog
{
	DECLARE_DYNAMIC(CDlgHoldRequest)

public:
	CDlgHoldRequest(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgHoldRequest();
	virtual BOOL OnInitDialog();
	virtual void OnOK();

	afx_msg void OnDtnDatetimechangeDatetimepickerHold(NMHDR *pNMHDR, LRESULT *pResult);

// Dialog Data
	enum { IDD = IDD_DIALOG_HOLD_REQUEST };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	LONG m_nItemID;
	LONG m_nUserID;
	LONG m_nLibraryID;

	CString m_szInfo;
	CListBox m_ctrlReason;
	COleDateTime m_dateHold;

	BOOL m_bEmailUser;
	BOOL m_bDatePicked;
	
	INT m_nReason;
	CString m_szTo;
	CString m_szDateIn;
	CString m_szMessage;

	CString m_szFrom;
	CString m_szName;
	CString m_szSubject;
	BOOL m_bSendStaff;

	CStringArray *m_pszaLibrary;
	CComboBox m_ctrlLibrary;
	afx_msg void OnLbnSelchangeListPick();
	afx_msg void OnBnClickedButtonDates();
};
